
<div>
  <h1>
    用户角色(<%= @roles.total_entries %>)
  </h1>
</div>

<div>
  <table class="table table-striped">
    <tr>
      <th>ID</th>
      <th>角色名</th>
      <th>角色权限</th>
    </tr>

    <% @roles.each do |role| %>
      <tr>
        <td><%= role.id %></td>
        <td><%= role.name %></td>
        <td><%= role_action(role) %></td>
      </tr>
    <% end -%>
  </table>

  <%= will_paginate @roles %>
</div>



